package com.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * User: Ishara Samantha
 * Date: Jun 25, 2010
 * Time: 12:09:19 PM
 */
public class LoginServlet extends HttpServlet
{
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    {
        String url;
        if (request.getParameter("continue") != null)
        {
            url = request.getParameter("continue");
        }
        else
        {
            url = request.getRequestURI();
        }
        response.sendRedirect("/openidlogin.jsp?continue=" + url);

    }
}
